package com.by.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.common.bean.PageBean;
import com.by.pojo.PurApplication;
import com.by.pojo.PurApplicationDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Project: erp-cloud-api - PurApplicationDetailsMapper</p>
 * <p>Powered by yzc On 2024-01-09 15:04:13</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface PurApplicationDetailsMapper extends BaseMapper<PurApplicationDetails> {

   List<PurApplication> list(@Param("pojoCode") String pojoCode, @Param("proName") String proName,
                             @Param("proCode") String proCode,
                             @Param("supCode") String supCode, @Param("totalAmount") Double totalAmount,
                             @Param("inquireStatus") Integer inquireStatus,
                             @Param("applicationStatus") Integer applicationStatus, @Param("subject") String subject, @Param("begin") String begin, @Param("end") String end, @Param("purchaseType") Integer purchaseType);

   /**
    * 查询最大code
    * @param code
    * @return
    */
   String MaxCode(String code);

   int updateStatus(String id);

   int updateInquiry(String id ,String code);


}
